Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hugo forte 2 posts 22 karma points
    Jun 07, 2012 @ 18:57
    hugo forte
    0

    Getting 404 on url <site>/auction/{Some Guid}

    A bit new to Umbraco, so this might be a bit of a scattered question.

    I'm using 5.1.

    I have a document type called Auction with a selected Template called Auction Details

    My end goal is to call this controller method on my AuctionSurfaceController

     

            [ChildActionOnly]
            public PartialViewResult Detail(string id)
            {
                Guid auctionId;
                if (Guid.TryParse(id, out auctionId))
                {
                    var auction = auctionService.Client.GetAuction(auctionId);
                    return PartialView(auction);
                }
                return null;
            }

     

    As of this moment when I go to /Auction - it hits this method and passes in "Auction" into the method, when I go to /Auction/{GUID} i just get a 404

    Could I please get some general guidance - or requests for clarifications on how to accomplish this. I would very much appreciate it

    Cheers!

Please Sign in or register to post replies

Write your reply to:

Draft